package com.missilike.biz;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.missilike.domain.request.OrderForm;
import com.missilike.domain.response.MilOrderInfo;
import com.missilike.repository.entity.MilOrder;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pengpengli
 * @since 2018-12-19
 */
public interface IMilOrderService extends IService<MilOrder> {
    /**
     * 发起支付
     * @param orderForm
     * @return
     */
    String prePay(OrderForm orderForm);

    /**
     * 支付宝支付回调
     * @param request
     * @return
     */
    Boolean alipayNotify(HttpServletRequest request);

    /**
     * 账号提现
     * @param orderForm
     * @return
     */
    Boolean cashWithdrawal(OrderForm orderForm) throws AlipayApiException;

    IPage<MilOrderInfo> getOrderList(IPage<MilOrder> page,String account);
}
